package org.mobai.math;

import java.math.BigDecimal;
import java.math.RoundingMode;

/**
 * @author Administrator
 * @version v1.0
 * @className MathUtil
 * @description
 * @date 2024/5/16 星期四 8:48
 **/
public class MathUtil {

    public static BigDecimal mulpty(BigDecimal a,BigDecimal b){


        return a.multiply(b).setScale(2, RoundingMode.HALF_UP);
    }

    public static void main(String[] args) {
        BigDecimal a = new BigDecimal("0.945");
        BigDecimal b = new BigDecimal("25");

        System.out.println(mulpty(a,b));
    }
}
